local zhanwang_active = fk.CreateSkill {
  name = "#th_zhanwang_active",
}

zhanwang_active:addEffect("active", {
  name = "#th_zhanwang_active",
  interaction = function(self)
    if #self.vs_all_names > 0 then
      return UI.CardNameBox { choices = self.vs_names, all_choices = self.vs_all_names, skill_name = self.skillName }
    end
  end,
  card_num = 1,
  card_filter = function(self, player, to_select, selected)
    if not self.interaction then return end
    return #selected == 0 and not player:prohibitDiscard(to_select) and Fk:currentRoom():getCardArea(to_select) ~= Player.Equip
  end,
  on_cost = function(self, player, data, extra_data)
    return { tos = extra_data.tos }
  end
})

return zhanwang_active